//
//  HQuotationTableViewCell.m
//  Router
//
//  Created by Zhen Huang on 2018/6/27.
//  Copyright © 2018年 James. All rights reserved.
//

#import "HQuotationTableViewCell.h"

@implementation HQuotationTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.nameLabel];
        [self.contentView addSubview:self.valueLabel];
        [self.contentView addSubview:self.changeLabel];
        [self.contentView addSubview:self.turnoverLabel];
    }
    return self;
}

- (UILabel *)nameLabel {
    if (!_nameLabel) {
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, ScreenWidth / 4, 20)];
        _nameLabel.textAlignment = 1;
        _nameLabel.font = [UIFont fontWithName:PingFangSCRegular size:13];
        _nameLabel.textColor = [Networking colorWithHexString:@"#C3E5FF"];
    }
    return _nameLabel;
}
- (UILabel *)valueLabel {
    if (!_valueLabel) {
        _valueLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.nameLabel.right, 10, ScreenWidth / 4, 20)];
        _valueLabel.textAlignment = 1;
        _valueLabel.font = [UIFont fontWithName:PingFangSCRegular size:13];
        _valueLabel.textColor = [Networking colorWithHexString:@"#C3E5FF"];
    }
    return _valueLabel;
}
- (UILabel *)changeLabel {
    if (!_changeLabel) {
        _changeLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.valueLabel.right, 10, ScreenWidth / 4, 20)];
        _changeLabel.textAlignment = 1;
        _changeLabel.font = [UIFont fontWithName:PingFangSCRegular size:13];
        _changeLabel.textColor = [Networking colorWithHexString:@"#C3E5FF"];
    }
    return _changeLabel;
}
- (UILabel *)turnoverLabel {
    if (!_turnoverLabel) {
        _turnoverLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.changeLabel.right, 10, ScreenWidth / 4, 20)];
        _turnoverLabel.textAlignment = 1;
        _turnoverLabel.font = [UIFont fontWithName:PingFangSCRegular size:13];
        _turnoverLabel.textColor = [Networking colorWithHexString:@"#C3E5FF"];
    }
    return _turnoverLabel;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
